<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title><%= type %></title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="../css/bootstrap.min.css" rel="stylesheet">
    <link href="../css/list.css" rel="stylesheet">
</head>
<body>

    <!-- 数据管理 -->
    <div class="col-sm-9  col-md-10">
        <div data-example-id="condensed-table">
            <table class="table table-condensed">
                <thead>
                    <tr>
                        <th>序号</th>
                        <th>类别</th>
                        <th>标题</th>
                        <th>内容</th>
                        <th>时间</th>
                        <th>操作</th>
                    </tr>
                </thead>

                <tbody>

                    <% for(var i=0; i<datas.length; i++) {%>

                    <tr>
                        <th scope='row' class='id'><%= datas[i]['id'] %></th>
                        <td class='type'><%= datas[i]['type_new'] %></td>
                        <td class='title'><%= datas[i]['title'] %></td>
                        <td class='content'><%= datas[i]['content'] %></td>
                        <td class='time'><%= datas[i]['ctime']%></td>
                        <td class='action'>
                            <a type='button' class='btn btn-danger' href='/admin/news/delete?id=<%= datas[i]['id'] %>'>删除</a>
                            <a type='button' class='btn btn-info' href='/admin/news/edit?id=<%= datas[i]['id'] %>'>修改</a>
                        </td>
                    </tr>



                    <% } %>


                </tbody>
            </table>

        </div>
    </div>

</body>

</html>